<!DOCTYPE html>
<html lang="es">
<head>
	<meta charset="utf-8">
	<title><?=$TITLE?></title>
	<link rel="stylesheet" href="<?=$__URL__?>../css/principal.css" type="text/css" />
	<script type="text/javascript" src="<?=$__URL__?>../js/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="<?=$__URL__?>../js/html5.js"></script>
</head>
<body>
<?php
//require $__PATH__ . DS . 'principal' . DS . XAUTH::$user->role .'.tpl.php' ;
echo $LOGIN;
?>
<table>
	<tbody>
<?php if(isset($TREE) && is_array($TREE)):$sp = '';?>
	<tr>
		<th colspan="2">
<?php foreach($TREE as $name => $url){
	echo $sp.'<a href="'.$url.'">'.$name.'</a>';
	$sp = '&lt;';
}?>
		</th>
	</tr>
<?php endif;?>
	<tr>
		<?=isset($MENU)?'<td width="200px">'.$MENU.'</td>':''?>
		<td><div id="CONTENT"><?=$BODY?></div></td>
	</tr>
	</tbody>
</table>
<!--<img src="mockup.jpg" alt="" />-->
</body>
</html>
